﻿using System;
using Equation.Enterprise.Framework.Domain.Model;

namespace ENail.Domain.Core
{
    public class Employee : EntityWithTypedId<Int16>
    {
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public DateTime BirthDay { get; set; }
        public string Address { get; set; }
        public string City { get; set; }
        public string State { get; set; }
        public string Zip { get; set; }
        public string Country { get; set; }
        public string Phone { get; set; }
        public DateTime EnrollmentDay { get; set; }
        public double CommisionPercentage { get; set; }
        public bool IsActive { get; set; }
        public virtual NailSalon NailSalon { get; set; }

        public Employee(string firstName, string lastName, DateTime birthDay, string address, string city, string state,
                        string zip, string country, string phone, DateTime enrollmentDay, double commisionPercentage) : this()
        {
            FirstName = firstName;
            LastName = lastName;
            BirthDay = birthDay;
            Address = address;
            City = city;
            State = state;
            Zip = zip;
            Country = country;
            Phone = phone;
            EnrollmentDay = enrollmentDay;
            CommisionPercentage = commisionPercentage;
        }

        public Employee()
        {
            IsActive = true;
        }
    }
}
